package com.hk.service;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.PointsHistory;



public interface IPointsHistory {

	
	public PointsHistory findById(long id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(PointsHistory u);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(PointsHistory u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(PointsHistory u);

	public List<PointsHistory> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<PointsHistory> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
	
	public Boolean add(long finUserId, Integer pointsId, String msg);
	
	/**
	 * 判断是积分规则是否有效
	 */
	public Integer  getDayTimes(Integer pointType, Long userId);
}
